import request from '@/utils/request'

// 查询生产订单列表
export function listOrder_product(query) {
  return request({
    url: '/mes/order_product/list',
    method: 'get',
    params: query
  })
}

// 查询生产订单详细
export function getOrder_product(id) {
  return request({
    url: '/mes/order_product/' + id,
    method: 'get'
  })
}

// 新增生产订单
export function addOrder_product(data) {
  return request({
    url: '/mes/order_product',
    method: 'post',
    data: data
  })
}

// 修改生产订单
export function updateOrder_product(data) {
  return request({
    url: '/mes/order_product',
    method: 'put',
    data: data
  })
}

// 删除生产订单
export function delOrder_product(id) {
  return request({
    url: '/mes/order_product/' + id,
    method: 'delete'
  })
}

// 导出生产订单
export function exportOrder_product(query) {
  return request({
    url: '/mes/order_product/export',
    method: 'get',
    params: query
  })
}